module.exports = {
  publicPath: "/gate",
  productionSourceMap: false,
  devServer: {
    port: 8081,
    proxy: {
      "/api": {
        target: "http://127.0.0.1:8089/",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api": "/" //通过pathRewrite重写地址，将前缀/api转为/
        }
      }
    }
  },
  css: {
    loaderOptions: {
      scss: {
        //全局导入默认scss
        prependData: `@import "@/assets/scss/basic.scss";`
      }
    }
  }
};
